﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;


namespace BLL
{
   public class FastOutStockBLL
    {
       FastOutStockDal fsdl = new FastOutStockDal();

       //获取快速出库列表
       public DataSet GetFastOutStockList()
       {
           return fsdl.GetFastOutStockList();
       }

         //获取快速出库明细
       public DataSet GetFastOutStockDetail(string FBillNo)
       {
           return fsdl.GetFastOutStockDetail(FBillNo);
       }

       //插入快速出库
       public bool InsertFastOutStockDetail(string FInterID, string FBillNo, string WorkBillNo, string PkgsBarCode, string userid, string len)
       {
           return fsdl.InsertFastOutStockDetail(  FInterID,FBillNo, WorkBillNo, PkgsBarCode, userid, len);
       }

         //更新快速出库的需求数量
       public bool UpdateFastOutStock(string FBillNo, decimal NeedQty, string FInterID)
       {
           return fsdl.UpdateFastOutStock(FBillNo, NeedQty,  FInterID);
       }

       //判断已扫的但未出库的数量
       public decimal GetFastOutStockScanQty(string FBillNo)
       {
           return fsdl.GetFastOutStockScanQty(FBillNo);
       }

       //获取不定尺的根长
       public string GetBDCLen(string PkgsBarCode, out string StickLen)
       {
           return fsdl.GetBDCLen(PkgsBarCode, out  StickLen);
       }

       // public bool GetBDC(string FBillNo)
       //{
       //    return fsdl.GetBDC( FBillNo);
       //}
       //完成快速出库单
       public bool FinishFastOutStock(string FBillNo, string userid, string FInterID, out string l_txt)
        {
            return fsdl.FinishFastOutStock(FBillNo, userid, FInterID, out  l_txt);
        }
    }
}
